package com.vimi8.ebb.service;

import com.vimi8.ebb.model.GeoCodings;
import com.vimi8.ebb.model.TradingDetail;
import com.vimi8.ebb.model.TrainInfo;
import com.vimi8.ebb.sqlprovider.TrainInfoSqlProvider;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by think on 2016/9/8.
 * 交易详情service
 */
@Mapper
public interface TradeDetailService {

    /**
     * 添加交易详情
     * @return
     */
@Insert("insert into trading_detail(id,ebb_id,business_volume,trading_volume,trade_date)" +
            " values(#{id},#{ebbId},#{businessVolume},#{tradingVolume},#{tradeDate})")
    public int insertTradeDetail(TradingDetail tradingDetail);
 /**
  * */
    @Select("select id ,ebb_id as ebbId,business_volume as businessVolume,trading_volume as tradingVolume,trade_date as tradeDate from  trading_detail where id=#{id}")
    public TradingDetail queryTradeDetailById(String id);
}



